package java_objects.nested_class;

public class InnerClassMembers {
	class InnerClass {
		// The field a cannot be declared static
		// in a non-static inner type,
		// unless initialized with a constant expression
		// static int a = 10; // ERROR
		
		static final int b = 10; // NO error
		
		int c = 10; // NO error
		
		void method() { } // no error
		
		// static void staticMethod(){ } // ERROR
		//The method staticMethod cannot be declared static;
		// static methods can only be declared in a static or top level type
	}
}
